import Cookies from 'js-cookie'

const TokenKey = 'ymw_user'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  // return Cookies.set(TokenKey, token, { expires: 1 / 3600 * process.env.VUE_APP_BASE_TIME })
  // return Cookies.set(TokenKey, token, { expires: 2 })


  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
